import type { Metadata } from "next";

import { Geist, Geist_Mono, Comforter } from "next/font/google";
import "./globals.css";
// 字体配置
const comforter = Comforter({
  variable: "--font-comforter",
  subsets: ["latin"],
  weight: "400"
});
// 字体配置
const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});
// 字体配置
const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Next App",
  description: "学无止境",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
     {/*  <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased`}
      >
        {children}
      </body> */}
      {/* 应用字体 */}
      <body
        className={comforter.className}
      >
        {children}
      </body>
    </html>
  );
}
